﻿<%@ Page Title="" Language="C#" MasterPageFile="~/teacheryemian/teachermain.Master" AutoEventWireup="true" CodeBehind="teakechengchaxun.aspx.cs" Inherits="zlh.teacheryemian.teakechengchaxun" %>
<asp:Content ID="Content1" runat="server" contentplaceholderid="teaContentPlaceHolder1">
                    <p>
                        <br />
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<asp:Label ID="coursename" runat="server" CssClass="word" Text="课程名字："></asp:Label>
<asp:TextBox ID="counametxt" runat="server" CssClass="textbox"></asp:TextBox>
<asp:Button ID="selectname" runat="server" CssClass="button" Text="Button" />
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataSourceID="SqlDataSource1" HorizontalAlign="Center" AllowPaging="True" Height="252px" Width="780px">
    <Columns>
        <asp:BoundField DataField="xueqi" HeaderText="xueqi" SortExpression="xueqi" />
        <asp:BoundField DataField="stuNo" HeaderText="stuNo" SortExpression="stuNo" />
        <asp:BoundField DataField="stuName" HeaderText="stuName" SortExpression="stuName" />
        <asp:BoundField DataField="CourseName" HeaderText="CourseName" SortExpression="CourseName" />
        <asp:BoundField DataField="grade" HeaderText="grade" SortExpression="grade" />
        <asp:BoundField DataField="Coursexuefen" HeaderText="Coursexuefen" SortExpression="Coursexuefen" />
        <asp:BoundField DataField="Class" HeaderText="Class" SortExpression="Class" />
    </Columns>
    <HeaderStyle CssClass="gridxiewHeaderstyle" />
    <RowStyle CssClass="gridviewrowstyle" />
</asp:GridView>
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:dhd2014112130ConnectionString14 %>" SelectCommand="SELECT * FROM [Grades] WHERE ([stuNo] = @stuNo)">
    <SelectParameters>
        <asp:ControlParameter ControlID="counametxt" Name="stuNo" PropertyName="Text" Type="String" />
    </SelectParameters>
</asp:SqlDataSource>
                    </p>
                    <p>
                    </p>
                </asp:Content>

